Unary operator overloading in oop c